Repository navigation
Complete the fixed object type table and document AC1018 verification (part of #20, closes #39) - #63
Merged
mahach666 merged 9 commits intoNov 20, 2026
Conversation
--- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-version: 18.12.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
--- updated-dependencies: - dependency-name: Microsoft.SourceLink.GitHub dependency-version: 10.0.404 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
#39) The fixed type codes come from libredwg's include/dwg.h and live in the public DwgObjectTypes: the name and the entity-or-object flag of every fixed code 0x01-0x52 plus the proxy codes. Wrong names are corrected (0x21 is SHAPE, ELLIPSE is 0x23; VERTEX_0B is VERTEX_3D), the missing ones are added (MINSERT, the seven DIMENSION variants, POLYLINE_PFACE/MESH, SOLID, TRACE, REGION, BODY, TOLERANCE, the table and control objects, LWPOLYLINE, PLACEHOLDER, VBA_PROJECT, LAYOUT, PROXY_ENTITY/OBJECT), OLE2FRAME and LWPOLYLINE count as entities, and class-defined codes (500+) are reported as Class_502 until the class list is decoded (#21). DwgObjectInfo.TypeName, the JSON byType keys and the type counts of dwgio inspect show the names. The README and docs/test-fixtures.md temper the AC1018 claim: implemented, not yet verified on a real drawing (#39).
Same as the fix on the CI/fixture PR: docfx builds only docs/ and reports the out-of-scope file link as an error.
WriteObj replaced the MTL first and the OBJ second, so a failure of the second move left the old OBJ naming the new MTL. Now the old MTL is first renamed aside, the new MTL moves in, and the OBJ - which names that MTL in its mtllib - moves in last; on a failure at either move the old MTL steps back in (or a failed fresh export leaves no MTL behind) and the previous pair survives together. Tests inject both failures: the OBJ destination held open exclusively (Windows file lock; on Unix the rename would succeed, so the test skips there) and the old MTL held open, plus a platform-independent destination-as-directory case for the fresh export.
…9c63e180b10a5f232578d9ef96fd62c7c37e' into codex/fix-pr-stack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completes the fixed type table and adds readable names to inspect and objects.byTypeName. Existing objects.byType keys stay hexadecimal. Reading class-defined records stays tracked in #21 and #20.
AC1018 was checked on real local drawings. The repository still needs a redistributable sample.
The stack also preserves output access rules, renders lines and points in the standalone viewer, and includes regression tests on both supported .NET frameworks.